home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Prog / H-K / Icon.sample.cpt / diffwords.icn < prev    next >
MacBinary  |  1988-04-07  |  896 b   |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert RIP Icon (image/ripIcon) ext Supported
65% dexvert Atari ICE* Image (image/iceStar) ext Supported
64% dexvert DEGAS Elite Icon (image/degasEliteIcon) ext Supported
63% dexvert FM-Towns Icons (image/fmTownsIcons) ext Supported
62% dexvert HP Palmtop Icon (image/hpPalmtopIcon) ext Supported
60% dexvert Psion Series 3 (image/psionPIC) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Micrografx Icon (image/micrografxIcon) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Thu Apr 7 05:32:48 1988, modified Thu Apr 7 05:32:48 1988, creator 'MPS ', type ASCII, 358 bytes "diffwords.icn" , at 0x1e6 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0d 64 69 66 66 77 6f | 72 64 73 2e 69 63 6e 00 |..diffwo|rds.icn.|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 01 66 00 | 00 01 7e 9e 80 fd 40 9e |......f.|..~...@.|
|00000060| 80 fd 40 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..@.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 5b d8 00 00 |........|....[...|
|00000080| 23 0d 23 20 20 20 20 20 | 20 20 20 20 20 44 20 49 |#.# | D I|
|00000090| 20 46 20 46 20 45 20 52 | 20 45 20 4e 20 54 20 20 | F F E R| E N T |
|000000a0| 20 57 20 4f 20 52 20 44 | 20 53 0d 23 0d 0d 23 20 | W O R D| S.#..# |
|000000b0| 20 54 68 69 73 20 70 72 | 6f 67 72 61 6d 20 6c 69 | This pr|ogram li|
|000000c0| 73 74 73 20 61 6c 6c 20 | 74 68 65 20 64 69 66 66 |sts all |the diff|
|000000d0| 65 72 65 6e 74 20 77 6f | 72 64 73 20 69 6e 20 74 |erent wo|rds in t|
|000000e0| 68 65 20 69 6e 70 75 74 | 20 74 65 78 74 2e 0d 23 |he input| text..#|
|000000f0| 20 20 54 68 65 20 64 65 | 66 69 6e 69 74 69 6f 6e | The de|finition|
|00000100| 20 6f 66 20 61 20 22 77 | 6f 72 64 22 20 69 73 20 | of a "w|ord" is |
|00000110| 6e 61 69 76 65 2e 0d 0d | 70 72 6f 63 65 64 75 72 |naive...|procedur|
|00000120| 65 20 6d 61 69 6e 28 29 | 0d 20 20 20 6c 65 74 74 |e main()|. lett|
|00000130| 65 72 20 3a 3d 20 26 6c | 63 61 73 65 20 2b 2b 20 |er := &l|case ++ |
|00000140| 26 75 63 61 73 65 0d 20 | 20 20 77 6f 72 64 73 20 |&ucase. | words |
|00000150| 3a 3d 20 73 65 74 28 29 | 0d 20 20 20 77 68 69 6c |:= set()|. whil|
|00000160| 65 20 74 65 78 74 20 3a | 3d 20 72 65 61 64 28 29 |e text :|= read()|
|00000170| 20 64 6f 0d 20 20 20 20 | 20 20 74 65 78 74 20 3f | do. | text ?|
|00000180| 20 77 68 69 6c 65 20 74 | 61 62 28 75 70 74 6f 28 | while t|ab(upto(|
|00000190| 6c 65 74 74 65 72 29 29 | 20 64 6f 0d 20 20 20 20 |letter))| do. |
|000001a0| 20 20 20 20 20 69 6e 73 | 65 72 74 28 77 6f 72 64 | ins|ert(word|
|000001b0| 73 2c 74 61 62 28 6d 61 | 6e 79 28 6c 65 74 74 65 |s,tab(ma|ny(lette|
|000001c0| 72 29 29 29 0d 20 20 20 | 65 76 65 72 79 20 77 72 |r))). |every wr|
|000001d0| 69 74 65 28 21 73 6f 72 | 74 28 77 6f 72 64 73 29 |ite(!sor|t(words)|
|000001e0| 29 0d 65 6e 64 0d 00 00 | 00 00 00 00 00 00 00 00 |).end...|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000210| 4e ad 10 d2 2d 40 ff f0 | 4f ef 00 0c 2f 2e ff f0 |N...-@..|O.../...|
|00000220| 2f 0a 4e ad 10 da 2d 40 | ff f4 50 8f 60 00 01 32 |/.N...-@|..P.`..2|
|00000230| 0d 64 69 66 66 77 6f 72 | 64 73 2e 69 63 6e 02 00 |.diffwor|ds.icn..|
|00000240| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 00 00 80 |..TEXTMP|S ......|
|00000250| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 00 00 80 |..TEXTMP|S ......|
|00000260| 01 05 5d cd a4 ea 00 00 | 00 00 00 00 00 00 00 00 |..].....|........|
|00000270| 00 00 9c 3a d6 72 00 00 | 01 66 00 00 01 7e 2d 6e |...:.r..|.f...~-n|
|00000280| ff f0 ff f4 4f ef 00 0c | 60 00 00 d6 41 ee ff f0 |....O...|`...A...|
|00000290| 43 ee ff f8 22 d8 22 d8 | 48 6e 00 0c 4e ba fd ce |C...".".|Hn..N...|
|000002a0| 58 8f 2f 00 2f 0a 4e ad | 10 ca 2d 40 ff f0 2f 2e |X././.N.|..-@../.|
|000002b0| ff f0 2f 0a 4e ad 10 da | 60 00 00 98 41 ee ff f0 |../.N...|`...A...|
|000002c0| 43 ee ff f8 22 d8 22 d8 | 48 6e ff 70 48 6e 00 0c |C...".".|Hn.pHn..|
|000002d0| 4e ba fd bc 50 8f 2f 00 | 4e ba e6 2e 28 00 58 8f |N...P./.|N...(.X.|
|000002e0| 66 06 74 02 60 00 00 92 | 59 02 66 10 48 78 00 01 |f.t.`...|Y.f.Hx..|
|000002f0| 2f 03 48 6e ff f0 2f 2e | ff f4 60 0c 42 a7 2f 03 |/.Hn../.|..`.B./.|
|00000300| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 20 70 72 |...H..Mo|naco. pr|
|00000310| 6f 67 72 61 6d 20 6c 69 | 73 74 73 20 61 6c 6c 20 |ogram li|sts all |
|00000320| 74 68 65 20 64 69 00 06 | 00 04 00 3c 00 24 01 dd |the di..|...<.$..|
|00000330| 02 7d 00 3c 00 24 01 dd | 02 7d 9e 80 c5 00 00 00 |.}.<.$..|.}......|
|00000340| 00 d7 00 00 00 d7 00 00 | 00 00 01 00 00 00 01 00 |........|........|
|00000350| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 02 1f 20 |...L...L|...2... |
|00000360| 03 ae 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|00000370| 00 0a 03 ed ff ff 00 00 | 00 00 00 02 fd 38 00 00 |........|.....8..|
+--------+-------------------------+-------------------------+--------+--------+